import request from '@/utils/request';

export async function queryLeaderServingList(payload) {
  return request(
    `/api/gold/advanced_manage_list?page_num=${payload.page_num}&page_size=${
      payload.page_size
    }&user_name=${payload.user_name}`,
    {
      method: 'GET',
      ...payload,
    }
  );
}

export async function addManage(payload) {
  return request(`/api/gold/advanced_manage_create`, {
    method: 'POST',
    body: payload,
  });
}

export async function updateManage(payload) {
  return request(`/api/gold/advanced_manage_update`, {
    method: 'POST',
    body: payload,
  });
}

export async function deleteManage(payload) {
  return request(`/api/gold/advanced_manage_delete`, {
    method: 'POST',
    body: payload,
  });
}
